#!/usr/bin/python2.5
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""To check whether set of robot is done correctly."""


from google.appengine.ext import webapp
from google.appengine.ext.webapp import util

import prediction
import dataio

class MainHandler(webapp.RequestHandler):
  def get(self):
    self.response.out.write('Some thing happened..')


class VerifyHandler(webapp.RequestHandler):

  def get(self):

    st = self.request.get('st', '')
    self.response.out.write('KEY')

def main():
  handles = [(r'/_wave/verify_token.*', VerifyHandler),
             (r'/getprediction', prediction.Prediction),
             (r'/saveprediction', prediction.Prediction),
             (r'/getmatches', dataio.DataIO),
             (r'/getmatch', dataio.DataIO),
             (r'/updatematches', dataio.DataIO),
             (r'/.*', MainHandler)]
  application = webapp.WSGIApplication(handles, debug=True)
  util.run_wsgi_app(application)


if __name__ == '__main__':
  main()
